When you include hyperlinks, two factors must be taken into account: whether they are set as relative or absolute on saving, and whether or not the file is present.
ハイパーリンクを設定する場合は、保存時に相対リンクと絶対リンクのどちらにするのか、および、リンク先のファイルが存在するのかの 2 点に注意する必要があります。
Choose Office - PreferencesTools - Options - Load/Save - General and specify in the Save URLs relative to field if Office creates relative or absolute hyperlinks. Relative linking is only possible when the document you are working on and the link destination are on the same drive.
[PO-fuzzy@shared\guide.po] ※※※未訳※※※
You should create the same directory structure on your hard disk as that which exists in the web space hosted by your Internet provider. Call the root directory for the homepage on your hard disk "homepage", for example. The start file is then "index.html", the full path being "C:\homepage\index.html" (assuming Windows operating system). The URL on your Internet provider's server might then be as follows: "http://www.myprovider.com/mypage/index.html". With relative addressing, you indicate the link relative to the location of the output document. For example, if you placed all the graphics for your homepage in a subfolder called "C:\homepage\images", you would need to give the following path to access the graphic "picture.gif": "images\picture.gif". This is the relative path, starting from the location of the file "index.html". On the provider's server, you would place the picture in the folder "mypage/images". When you transfer the document "index.html" to the provider's server through the File - Save As dialog, and if you have marked the option Copy local graphics to Internet under Office - PreferencesTools - Options - Load/Save - HTML Compatibility, Office will automatically copy the graphic to the correct directory on the server.
[PO-fuzzy@shared\guide.po] 手元のハードディスク上に作成するディレクトリ構造は、インターネットサービスプロバイダによって管理される Web スペース内に存在する構造と同じ構造にしてください。 たとえば、ハードディスク上のホームページのルートディレクトリ名を「homepage」にしたとします。 開始ファイルが「index.html」の場合、そのフルパスは「C:\homepage\index.html」となります (Windows オペレーティングシステムの場合)。 これに対して、最終的に利用するインターネットサービスプロバイダ側のサーバーの URL は、「http://www.myprovider.com/mypage/index.html」となります。 相対アドレスを使う場合は、出力するドキュメントの相対的な格納位置でリンクを指定します。 たとえば、ホームページに使用するすべての画像をサブフォルダの「C:\homepage\images」に置いた場合、画像ファイル「picture.gif」にアクセスするには、「images\picture.gif」のようにパスを指定する必要があります。 これが相対パスであり、この場合はファイル「index.html」の場所を基準としています。 この画像をプロバイダ側のサーバーに置くときは、フォルダ「mypage/images」に格納します。 なお、「ファイル」 → 「名前を付けて保存」 ダイアログを使って「index.html」をプロバイダ側のサーバーに転送する場合、事前に 「ツール」 → 「オプション」 → 「読み込みと保存」 → 「HTML 互換性」 で 「ローカルの図をインターネットにコピー」 オプションをオンに指定しておけば、Office が自動的に画像をサーバー側の適切なディレクトリにコピーします。
An absolute path such as "C:\homepage\graphics\picture.gif" would no longer function on the provider server. Neither a server nor the computer of a reader needs to have a C hard drive: operating systems such as Unix or MacOS do not recognize drive letters, and even if the folder homepage\graphics existed, your picture would not be available. It is better to use relative addressing for file links.
「C:\homepage\graphics\picture.gif」などの絶対パスは、プロバイダ側のサーバーでは機能しません。サーバー側にしろ他のユーザーのコンピュータにしろ、必ずしもハードディスクに C ドライブがあるとは限りませんし、オペレーティングシステムの中でも UNIX や MacOS などは、こうしたドライブレターを認識しないので、仮に homepage\graphics というフォルダが存在しても、そのままではこのフォルダ中の画像にアクセスできないからです。このためファイルのリンクに関しては、相対アドレス指定を用いる方が無難です。
A link to a web page, for example, "www.example.com" or "www.myprovider.com/mypage/index.html" is an absolute link.
Web ページへのリンク、例えば、「www.example.com」または「www.myprovider.com/mypage/index.html」は絶対リンクです。
Office also reacts differently, depending on whether the file referred to in the link exists, and where it is located. Office checks every new link and sets a target and protocol automatically. The result can be seen in the generated HTML code after saving the source document.
また Office では、リンクの参照先ファイルが存在しているか、およびその位置が特定されているかによって、その扱いが異なってきます。Office は、新規のリンクをすべて自動的にチェックして、ターゲットとプロトコルの設定を行います。この結果は、ソースドキュメントを保存して得られる HTML コードに反映されます。
The following rules apply: A relative reference ("graphic/picture.gif") is only possible when both files exist on the same drive. If the files are on different drives in your local file system, the absolute reference follows the "file:" protocol ("file:///data1/xyz/picture.gif"). If the files are on different servers or if the target of the link is not available, the absolute reference uses the "http:" protocol ("http://data2/abc/picture.gif").
ルールは次の通りです。相対的アドレス(「graphic/image.gif」)はファイルが両方とも同じドライブにある場合に限って有効です。ファイルが両方とも別々のドライブにあっても同じローカルファイルシステム内にある場合は、「file:」プロトコル(「file:///data1/xyz/image.gif」)付きで絶対アドレスが指定されます。ファイルが両方とも別々のサーバーあったり、または一時的にリンク先がない場合、「http:」プロトコル(「http://data2/abc/image.gif」)付きで絶対アドレスが指定されます。
Be sure to organize all files for your homepage on the same drive as the start file of the homepage. In this way, Office can set the protocol and target so that the reference on the server is always correct.
ホームページを構成するすべてのファイルは、ホームページのスタート位置とするファイルと同じドライブに配置するようにします。こうすることで Office は、サーバー側での参照情報が常に正しくなるよう、プロトコルとターゲットを設定できます。
![]() | When you rest your mouse on a hyperlink, a help tip displays the absolute reference, since Office uses absolute path names internally. The complete path and address can only be seen when you view the result of the HTML export, by loading the HTML file as "Text" or opening it with a text editor.
Office は内部では絶対的パスで動作しているので、ハイパーリンクと HTML ソーステキストエディタのヒントヘルプでは常に絶対的表記をとっています。作成した HTML ファイルを「テキスト」として読み込むか、またはテキストエディタで開いた場合にはじめて、HTML エクスポートでファイルに書き込きこんだものの結果が確認できます。 |